package day05.shuzu;

public class Lian04 {
    public static void main(String[] args) {
        int sum=getsum(5);
        System.out.println(sum);
    }

    private static int getsum(int i) {
        if (i==1){
            return 1;
        }else {
            return i*getsum(i-1);
        }

    }
}
